<template>
	<aplid-base-crud ref="crud" class="w-100" v-bind="baseConfig"></aplid-base-crud>
</template>

<script setup lang="ts">
const rowData: any = inject('nowRowData')
const baseConfig = {
	pageName: '培训记录',
	dictcodes: ['ORG_TYPE', 'ORG_LEVEL'],
	rowKey: 'roleId',
	api: {
		index: 'view_dpTrainingRecord_page',
	},
	auth: {
		index: 'view_dpTrainingRecord_page',
	},
	paramsObj: {
		idCard: rowData.idCard,
	},
	menuBtn: [],
	tableConfig: {
		stripe: true,
		border: false,
		tableLayout: 'auto',
		columns: [
      { label: '组织单位', prop: 'unitName'},
			{
				label: '培训单位名称',
				prop: 'trainingUnitName',
			},
      { label: '培训类型', prop: 'trainingTypeLabel'},
      { label: '培训天数', prop: 'trainingDays'},
			{
				label: '培训日期',
				prop: 'trainingDate',
			},
			{
				label: '培训内容',
				prop: 'trainingContent',
			},
		],
	},
}
</script>

<style scoped></style>
